﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EShop.Model
{
    public class MerchandiseUnitInfo:BaseInfo
    {
        private int _unitid;
        private string _unitname;

        public MerchandiseUnitInfo()
        {
        }

        public MerchandiseUnitInfo(int unitId, string unitName)
        {
            this._unitid = unitId;
            this._unitname = unitName;
        }

        public int UnitID
        {
            set { _unitid = value; }
            get { return _unitid; }
        }
        public string UnitName
        {
            set { _unitname = value; }
            get { return _unitname; }
        }

        //结绑定combobox使用
        public override string ToString()
        {
            return _unitname;
        }

    }
}
